<%@page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>无线监控系统登陆</title>
	<style>.error{color:red;}</style>
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/themes/metro/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/themes/icon.css">
	<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/js/easyloader.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/js/locale/easyui-lang-zh_CN.js"></script>
</head>
<body>
	<div style="color:red;" class="message"><label>${error}</label></div>
	<div id="p"  class="easyui-window" title="登陆" style="width:355px;height:240px" closable="false" collapsible="false" minimizable="false" maximizable="false" >
	    <form id="ff" method="post" action="">

        <div style="margin:20px;">
            <span for="username" class="login">用户名：</span>
            <input class="easyui-textbox" type="text" name="username" value="<shiro:principal/>" style="width:180px;height:25px" data-options="required:true"></input>
        </div>
        <div style="margin:20px;">
            <span for="passport" class="login">密　码：</span>
            <input class="easyui-textbox" type="password" name="password" style="width:180px;height:25px" data-options="required:true"></input>
        </div>
	        <div style="margin:20px;">
            <span for="username" class="login">自动登录</span>
            <input type="checkbox" name="rememberMe" value="true"><br/>
        </div>
	    </form>
	      
	    <div style="text-align:center;margin:20px;">
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">登陆</a>
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()">重置</a>
	    </div>
	</div>
</body>	    

<script>
function submitForm(){
	$('#ff').submit();
}
function clearForm(){
	$('#ff').form('clear');
}
</script>

</html>